FROM mysql:8.0

COPY my.cnf /etc/mysql/mysql.conf.d/my.cnf
COPY init.sql /docker-entrypoint-initdb.d/init.sql

RUN chmod 644 /etc/mysql/mysql.conf.d/my.cnf

ENV TZ=Asia/Shanghai